package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;


/**
 * The persistent class for the IN_MEDICAL_PROJECT_CHARGE database table.
 * 
 */
@Entity
@Table(name="IN_MEDICAL_PROJECT_CHARGE")
@NamedQuery(name="InMedicalProjectCharge.findAll", query="SELECT i FROM InMedicalProjectCharge i")
public class InMedicalProjectCharge implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="IN_MEDICAL_PROJECT_ID")
	private long inMedicalProjectId;

	private BigDecimal total;

	/*//bi-directional many-to-one association to HospWorkInErx
	@OneToMany(mappedBy="inMedicalProjectCharge")
	private List<HospWorkInErx> hospWorkInErxs;
*/
	//bi-directional many-to-one association to HospWorkInErx
	@ManyToOne
	@JoinColumn(name="PRESCRIPTIONNUM_IN")
	private HospWorkInErx hospWorkInErx;

	/*//bi-directional many-to-one association to InMedicalProjectChargeDeta
	@OneToMany(mappedBy="inMedicalProjectCharge")
	private List<InMedicalProjectChargeDeta> inMedicalProjectChargeDetas;
*/
	public InMedicalProjectCharge() {
	}

	public long getInMedicalProjectId() {
		return this.inMedicalProjectId;
	}

	public void setInMedicalProjectId(long inMedicalProjectId) {
		this.inMedicalProjectId = inMedicalProjectId;
	}

	public BigDecimal getTotal() {
		return this.total;
	}

	public void setTotal(BigDecimal total) {
		this.total = total;
	}

	/*public List<HospWorkInErx> getHospWorkInErxs() {
		return this.hospWorkInErxs;
	}

	public void setHospWorkInErxs(List<HospWorkInErx> hospWorkInErxs) {
		this.hospWorkInErxs = hospWorkInErxs;
	}

	public HospWorkInErx addHospWorkInErx(HospWorkInErx hospWorkInErx) {
		getHospWorkInErxs().add(hospWorkInErx);
		hospWorkInErx.setInMedicalProjectCharge(this);

		return hospWorkInErx;
	}

	public HospWorkInErx removeHospWorkInErx(HospWorkInErx hospWorkInErx) {
		getHospWorkInErxs().remove(hospWorkInErx);
		hospWorkInErx.setInMedicalProjectCharge(null);

		return hospWorkInErx;
	}
*/
	public HospWorkInErx getHospWorkInErx() {
		return this.hospWorkInErx;
	}

	public void setHospWorkInErx(HospWorkInErx hospWorkInErx) {
		this.hospWorkInErx = hospWorkInErx;
	}

	/*public List<InMedicalProjectChargeDeta> getInMedicalProjectChargeDetas() {
		return this.inMedicalProjectChargeDetas;
	}

	public void setInMedicalProjectChargeDetas(List<InMedicalProjectChargeDeta> inMedicalProjectChargeDetas) {
		this.inMedicalProjectChargeDetas = inMedicalProjectChargeDetas;
	}*/

	/*public InMedicalProjectChargeDeta addInMedicalProjectChargeDeta(InMedicalProjectChargeDeta inMedicalProjectChargeDeta) {
		getInMedicalProjectChargeDetas().add(inMedicalProjectChargeDeta);
		inMedicalProjectChargeDeta.setInMedicalProjectCharge(this);

		return inMedicalProjectChargeDeta;
	}

	public InMedicalProjectChargeDeta removeInMedicalProjectChargeDeta(InMedicalProjectChargeDeta inMedicalProjectChargeDeta) {
		getInMedicalProjectChargeDetas().remove(inMedicalProjectChargeDeta);
		inMedicalProjectChargeDeta.setInMedicalProjectCharge(null);

		return inMedicalProjectChargeDeta;
	}*/

}